<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>

<script type="text/javascript" src="<c:url value="/layout/javascript/jquery.form.js"/>">/**/</script>
<script type="text/javascript">
$(document).ready(function() {
    var options = { 
            target:    '#validationbox',
            beforeSubmit: function() {
                             $('#validationbox').html('<img alt="<bean:message key="saving.message"/>" src="<c:url value="/layout/images/ajax-loader.gif"/>"/><bean:message key="saving.message"/>');
                             $('#validationbox').dialog('open');
                          }, 
            error:     function () {
                           $('#validationbox').dialog('close');
                           showErrorDialog('#dialog', 
                                       { msg: "<bean:message key="profile.submit.form.msg" bundle="errors"/>",
                                         boxTitle: "<bean:message key="profile.submit.form.boxTitle" bundle="errors"/>",
                                         msgStatus: "<bean:message key="profile.submit.form.msgStatus" bundle="errors"/>" });
                       }  
    };
    
    $('#form_11691').ajaxForm(options);
});
</script>

<div id="content">
		<!--FORM-->
		<fieldset id="fieldset">
			<legend class="fieldsetLabel"><bean:message key="profile" bundle="profile"/></legend>
				
			<div id="form_container">
				<html:form styleId="form_11691" styleClass="appnitro" action="${requestScope.action}">		
					<ul>
					<li id="li_1" >
						<label class="description" for="element_1"><bean:message key="profile.name" bundle="profile"/></label>
						<span>
							<html:text property="firstName" styleId="element_1_1" styleClass="element text" maxlength="255" size="18" />
							<label><bean:message key="profile.name.first" bundle="profile"/></label>
						</span>
						<span>
							<html:text property="lastName" styleId="element_1_2" styleClass="element text" maxlength="255" size="28" />
							<label><bean:message key="profile.name.last" bundle="profile"/></label>
						</span> 
					</li>		
					<li id="li_10Profile" >
						<label class="description" for="element_10"><bean:message key="user.role" bundle="profile"/></label>
						<div>
							<html:select disabled="true" property="roleName" styleClass="element select large" styleId="element_10"> 
								<html:options collection="roles" property="name" labelProperty="description"/>
							</html:select>
						</div>
					</li>
					<li id="li_9Profile" >
						<label class="description" for="element_9"><bean:message key="user.office" bundle="profile"/></label>
						<div>
							<html:select property="officeID" styleClass="element select large" styleId="element_9">
								<html:options collection="offices" property="officeID" labelProperty="number"/>
							</html:select>
						</div> 
					</li>				
					<li id="li_5Profile" >
						<label class="description" for="element_5"><bean:message key="user.username" bundle="profile"/></label>
						<div>
							<html:hidden property="username" />
							<html:text disabled="true" property="username" styleId="element_5" styleClass="element text medium" maxlength="255" />
							<html:hidden property="enabled" />
							<html:checkbox disabled="true" property="enabled"><bean:message key="user.enableaccount" bundle="profile"/></html:checkbox> 
						</div> 
					</li>		
					<li id="li_7profile" >
						<label class="description" for="element_7"><bean:message key="user.password" bundle="profile"/></label>
						<div>
							<html:password property="password" styleId="element_7"  styleClass="element text large" maxlength="255" /> 
						</div> 
					</li>		
					<li id="li_6profile" >
						<label class="description" for="element_6"><bean:message key="user.confirmpassword" bundle="profile"/></label>
						<div>
							<html:password property="cPassword" styleId="element_6" styleClass="element text medium" maxlength="255" /> 
						</div> 
					</li> 	
					<li id="li_2Profile" >
						<label class="description" for="element_2"><bean:message key="user.email" bundle="profile"/></label>
						<div>
							<html:text property="email" styleId="element_2Profile"  styleClass="element text medium" maxlength="255" /> 
						</div> 
					</li>		
					<li id="li_4Profile" >
						<label class="description" for="element_4"><bean:message key="profile.phone" bundle="profile"/></label>
						<div>
							<html:text property="phone" styleId="element_4Profile" styleClass="element text medium" maxlength="255" /> 
						</div> 
					</li>
					<li id="li_3">
					   <div>
					       <html:checkbox property="enableNotice"><bean:message key="profile.mailnotify" bundle="profile"/></html:checkbox>
					   </div>
					</li>		
					<li id="li_3Profile" >
						<label class="description" for="element_3"><bean:message key="profile.address" bundle="profile"/></label>
						<div>
							<html:text property="address" styleId="element_3_1"  styleClass="element text large" />
							<label for="element_3_1"><bean:message key="profile.address.street" bundle="profile"/></label>
						</div>					
						<div class="left">
							<html:text property="city"  styleClass="element text medium" />
							<label for="element_3_3"><bean:message key="profile.address.city" bundle="profile"/></label>
						</div>
						<div class="left">
							<html:text property="zipCode" styleId="element_3_5"  styleClass="element text medium" maxlength="15" />
							<label for="element_3_5"><bean:message key="profile.address.postal" bundle="profile"/></label>
						</div>
						<div id="ele36Profile" class="right">
							<html:select property="state" styleClass="element select medium" styleId="state">
								<html:option value="Afghanistan" >Afghanistan</html:option>
								<html:option value="Albania" >Albania</html:option>
								<html:option value="Algeria" >Algeria</html:option>
								<html:option value="Andorra" >Andorra</html:option>
								<html:option value="Antigua and Barbuda" >Antigua and Barbuda</html:option>
								<html:option value="Argentina" >Argentina</html:option>
								<html:option value="Armenia" >Armenia</html:option>
								<html:option value="Australia" >Australia</html:option>
								<html:option value="Austria" >Austria</html:option>
								<html:option value="Azerbaijan" >Azerbaijan</html:option>
								<html:option value="Bahamas" >Bahamas</html:option>
								<html:option value="Bahrain" >Bahrain</html:option>
								<html:option value="Bangladesh" >Bangladesh</html:option>
								<html:option value="Barbados" >Barbados</html:option>
								<html:option value="Belarus" >Belarus</html:option>
								<html:option value="Belgium" >Belgium</html:option>
								<html:option value="Belize" >Belize</html:option>
								<html:option value="Benin" >Benin</html:option>
								<html:option value="Bhutan" >Bhutan</html:option>
								<html:option value="Bolivia" >Bolivia</html:option>
								<html:option value="Bosnia and Herzegovina" >Bosnia and Herzegovina</html:option>
								<html:option value="Botswana" >Botswana</html:option>
								<html:option value="Brazil" >Brazil</html:option>
								<html:option value="Brunei" >Brunei</html:option>
								<html:option value="Bulgaria" >Bulgaria</html:option>
								<html:option value="Burkina Faso" >Burkina Faso</html:option>
								<html:option value="Burundi" >Burundi</html:option>
								<html:option value="Cambodia" >Cambodia</html:option>
								<html:option value="Cameroon" >Cameroon</html:option>
								<html:option value="Canada" >Canada</html:option>
								<html:option value="Cape Verde" >Cape Verde</html:option>
								<html:option value="Central African Republic" >Central African Republic</html:option>
								<html:option value="Chad" >Chad</html:option>
								<html:option value="Chile" >Chile</html:option>
								<html:option value="China" >China</html:option>
								<html:option value="Colombia" >Colombia</html:option>
								<html:option value="Comoros" >Comoros</html:option>
								<html:option value="Congo" >Congo</html:option>
								<html:option value="Costa Rica" >Costa Rica</html:option>
								<html:option value="Côte d'Ivoire" >Côte d'Ivoire</html:option>
								<html:option value="Croatia" >Croatia</html:option>
								<html:option value="Cuba" >Cuba</html:option>
								<html:option value="Cyprus" >Cyprus</html:option>
								<html:option value="Czech Republic" >Czech Republic</html:option>
								<html:option value="Denmark" >Denmark</html:option>
								<html:option value="Djibouti" >Djibouti</html:option>
								<html:option value="Dominica" >Dominica</html:option>
								<html:option value="Dominican Republic" >Dominican Republic</html:option>
								<html:option value="East Timor" >East Timor</html:option>
								<html:option value="Ecuador" >Ecuador</html:option>
								<html:option value="Egypt" >Egypt</html:option>
								<html:option value="El Salvador" >El Salvador</html:option>
								<html:option value="Equatorial Guinea" >Equatorial Guinea</html:option>
								<html:option value="Eritrea" >Eritrea</html:option>
								<html:option value="Estonia" >Estonia</html:option>
								<html:option value="Ethiopia" >Ethiopia</html:option>
								<html:option value="Fiji" >Fiji</html:option>
								<html:option value="Finland" >Finland</html:option>
								<html:option value="France" >France</html:option>
								<html:option value="Gabon" >Gabon</html:option>
								<html:option value="Gambia" >Gambia</html:option>
								<html:option value="Georgia" >Georgia</html:option>
								<html:option value="Germany" >Germany</html:option>
								<html:option value="Ghana" >Ghana</html:option>
								<html:option value="Greece" >Greece</html:option>
								<html:option value="Grenada" >Grenada</html:option>
								<html:option value="Guatemala" >Guatemala</html:option>
								<html:option value="Guinea" >Guinea</html:option>
								<html:option value="Guinea-Bissau" >Guinea-Bissau</html:option>
								<html:option value="Guyana" >Guyana</html:option>
								<html:option value="Haiti" >Haiti</html:option>
								<html:option value="Honduras" >Honduras</html:option>
								<html:option value="Hong Kong" >Hong Kong</html:option>
								<html:option value="Hungary" >Hungary</html:option>
								<html:option value="Iceland" >Iceland</html:option>
								<html:option value="India" >India</html:option>
								<html:option value="Indonesia" >Indonesia</html:option>
								<html:option value="Iran" >Iran</html:option>
								<html:option value="Iraq" >Iraq</html:option>
								<html:option value="Ireland" >Ireland</html:option>
								<html:option value="Israel" >Israel</html:option>
								<html:option value="Italy" >Italy</html:option>
								<html:option value="Jamaica" >Jamaica</html:option>
								<html:option value="Japan" >Japan</html:option>
								<html:option value="Jordan" >Jordan</html:option>
								<html:option value="Kazakhstan" >Kazakhstan</html:option>
								<html:option value="Kenya" >Kenya</html:option>
								<html:option value="Kiribati" >Kiribati</html:option>
								<html:option value="North Korea" >North Korea</html:option>
								<html:option value="South Korea" >South Korea</html:option>
								<html:option value="Kuwait" >Kuwait</html:option>
								<html:option value="Kyrgyzstan" >Kyrgyzstan</html:option>
								<html:option value="Laos" >Laos</html:option>
								<html:option value="Latvia" >Latvia</html:option>
								<html:option value="Lebanon" >Lebanon</html:option>
								<html:option value="Lesotho" >Lesotho</html:option>
								<html:option value="Liberia" >Liberia</html:option>
								<html:option value="Libya" >Libya</html:option>
								<html:option value="Liechtenstein" >Liechtenstein</html:option>
								<html:option value="Lithuania" >Lithuania</html:option>
								<html:option value="Luxembourg" >Luxembourg</html:option>
								<html:option value="Macedonia" >Macedonia</html:option>
								<html:option value="Madagascar" >Madagascar</html:option>
								<html:option value="Malawi" >Malawi</html:option>
								<html:option value="Malaysia" >Malaysia</html:option>
								<html:option value="Maldives" >Maldives</html:option>
								<html:option value="Mali" >Mali</html:option>
								<html:option value="Malta" >Malta</html:option>
								<html:option value="Marshall Islands" >Marshall Islands</html:option>
								<html:option value="Mauritania" >Mauritania</html:option>
								<html:option value="Mauritius" >Mauritius</html:option>
								<html:option value="Mexico" >Mexico</html:option>
								<html:option value="Micronesia" >Micronesia</html:option>
								<html:option value="Moldova" >Moldova</html:option>
								<html:option value="Monaco" >Monaco</html:option>
								<html:option value="Mongolia" >Mongolia</html:option>
								<html:option value="Montenegro" >Montenegro</html:option>
								<html:option value="Morocco" >Morocco</html:option>
								<html:option value="Mozambique" >Mozambique</html:option>
								<html:option value="Myanmar" >Myanmar</html:option>
								<html:option value="Namibia" >Namibia</html:option>
								<html:option value="Nauru" >Nauru</html:option>
								<html:option value="Nepal" >Nepal</html:option>
								<html:option value="Netherlands" >Netherlands</html:option>
								<html:option value="New Zealand" >New Zealand</html:option>
								<html:option value="Nicaragua" >Nicaragua</html:option>
								<html:option value="Niger" >Niger</html:option>
								<html:option value="Nigeria" >Nigeria</html:option>
								<html:option value="Norway" >Norway</html:option>
								<html:option value="Oman" >Oman</html:option>
								<html:option value="Pakistan" >Pakistan</html:option>
								<html:option value="Palau" >Palau</html:option>
								<html:option value="Panama" >Panama</html:option>
								<html:option value="Papua New Guinea" >Papua New Guinea</html:option>
								<html:option value="Paraguay" >Paraguay</html:option>
								<html:option value="Peru" >Peru</html:option>
								<html:option value="Philippines" >Philippines</html:option>
								<html:option value="Poland" >Poland</html:option>
								<html:option value="Portugal" >Portugal</html:option>
								<html:option value="Puerto Rico" >Puerto Rico</html:option>
								<html:option value="Qatar" >Qatar</html:option>
								<html:option value="Romania" >Romania</html:option>
								<html:option value="Russia" >Russia</html:option>
								<html:option value="Rwanda" >Rwanda</html:option>
								<html:option value="Saint Kitts and Nevis" >Saint Kitts and Nevis</html:option>
								<html:option value="Saint Lucia" >Saint Lucia</html:option>
								<html:option value="Saint Vincent and the Grenadines" >Saint Vincent and the Grenadines</html:option>
								<html:option value="Samoa" >Samoa</html:option>
								<html:option value="San Marino" >San Marino</html:option>
								<html:option value="Sao Tome and Principe" >Sao Tome and Principe</html:option>
								<html:option value="Saudi Arabia" >Saudi Arabia</html:option>
								<html:option value="Senegal" >Senegal</html:option>
								<html:option value="Serbia and Montenegro" >Serbia and Montenegro</html:option>
								<html:option value="Seychelles" >Seychelles</html:option>
								<html:option value="Sierra Leone" >Sierra Leone</html:option>
								<html:option value="Singapore" >Singapore</html:option>
								<html:option value="Slovakia" >Slovakia</html:option>
								<html:option value="Slovenia" >Slovenia</html:option>
								<html:option value="Solomon Islands" >Solomon Islands</html:option>
								<html:option value="Somalia" >Somalia</html:option>
								<html:option value="South Africa" >South Africa</html:option>
								<html:option value="Spain" >Spain</html:option>
								<html:option value="Sri Lanka" >Sri Lanka</html:option>
								<html:option value="Sudan" >Sudan</html:option>
								<html:option value="Suriname" >Suriname</html:option>
								<html:option value="Swaziland" >Swaziland</html:option>
								<html:option value="Sweden" >Sweden</html:option>
								<html:option value="Switzerland" >Switzerland</html:option>
								<html:option value="Syria" >Syria</html:option>
								<html:option value="Taiwan" >Taiwan</html:option>
								<html:option value="Tajikistan" >Tajikistan</html:option>
								<html:option value="Tanzania" >Tanzania</html:option>
								<html:option value="Thailand" >Thailand</html:option>
								<html:option value="Togo" >Togo</html:option>
								<html:option value="Tonga" >Tonga</html:option>
								<html:option value="Trinidad and Tobago" >Trinidad and Tobago</html:option>
								<html:option value="Tunisia" >Tunisia</html:option>
								<html:option value="Turkey" >Turkey</html:option>
								<html:option value="Turkmenistan" >Turkmenistan</html:option>
								<html:option value="Tuvalu" >Tuvalu</html:option>
								<html:option value="Uganda" >Uganda</html:option>
								<html:option value="Ukraine" >Ukraine</html:option>
								<html:option value="United Arab Emirates" >United Arab Emirates</html:option>
								<html:option value="United Kingdom" >United Kingdom</html:option>
								<html:option value="United States" >United States</html:option>
								<html:option value="Uruguay" >Uruguay</html:option>
								<html:option value="Uzbekistan" >Uzbekistan</html:option>
								<html:option value="Vanuatu" >Vanuatu</html:option>
								<html:option value="Vatican City" >Vatican City</html:option>
								<html:option value="Venezuela" >Venezuela</html:option>
								<html:option value="Vietnam" >Vietnam</html:option>
								<html:option value="Yemen" >Yemen</html:option>
								<html:option value="Zambia" >Zambia</html:option>
								<html:option value="Zimbabwe" >Zimbabwe</html:option>
							</html:select>
							<label for="element_3_6"><bean:message key="profile.address.state" bundle="profile"/></label>
						</div> 
					</li>		
					<li class="buttons">
						<html:hidden property="userID" />
						<html:hidden property="userProfileID" />
						<html:submit styleId="saveForm" styleClass="button_text">
						  <bean:message key="button.save"/>
						</html:submit>
					</li>
					</ul>
				</html:form>	
			</div>				
		</fieldset>	
</div>